import request from '@/utils/request'

// 查询委托咨询列表
export function listConsulation(query) {
  return request({
    url: '/api/LegalCase/consulation/list',
    method: 'get',
    params: query
  })
}

// 查询委托咨询详细
export function getConsulation(id) {
  return request({
    url: '/api/LegalCase/consulation/' + id,
    method: 'get'
  })
}

// 新增委托咨询
export function addConsulation(data) {
  return request({
    url: '/api/LegalCase/consulation',
    method: 'post',
    data: data
  })
}

// 修改委托咨询
export function updateConsulation(data) {
  return request({
    url: '/api/LegalCase/consulation',
    method: 'put',
    data: data
  })
}

// 删除委托咨询
export function delConsulation(id) {
  return request({
    url: '/api/LegalCase/consulation/' + id,
    method: 'delete'
  })
}
